package com.easylinkin.linkappapi.airconditioner.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "ac_aircondition_device")
public class AirconditionDevice extends Model<AirconditionDevice> {
    /**
     * 设备编号
     */
    @TableId(value = "device_id", type = IdType.INPUT)
    private String deviceId;

    /**
     * 设备编码
     */
    @TableField(value = "device_code")
    private String deviceCode;

    /**
     * 设备名称
     */
    @TableField(value = "device_name")
    private String deviceName;

    /**
     * 主机设备编号
     */
    @TableField(value = "host_device_id")
    private String hostDeviceId;

    /**
     * 主机设备编号
     */
    @TableField(exist = false)
    private String hostDeviceCode;

    /**
     * 低风P
     */
    @TableField(value = "low_fan")
    private BigDecimal lowFan;

    /**
     * 中风P
     */
    @TableField(value = "mid_fan")
    private BigDecimal midFan;

    /**
     * 高风P
     */
    @TableField(value = "high_fan")
    private BigDecimal highFan;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private List<String> deviceIds;

    @TableField(exist = false)
    private AirHostDevice airHostDevice;

    @TableField(exist = false)
    private List<AirconditionDeviceRecord> airconditionDeviceRecordList;

    @TableField("tenant_id")
    private String tenantId;//'租户id'
}